import request from '/@/utils/request'
import {prefix} from '/@/api/sms'

// 获取列表
export function pageList(data: object) {
    return request({
        url: prefix + '/smsCouponHistory/pageList',
        method: 'post',
		data
    })
}


// 创建
export function create(data: object) {
    return request({
        url: prefix + '/smsCouponHistory/create',
        method: 'post',
        data
    })
}

// 编辑
export function update(data: object) {
    return request({
        url: prefix + '/smsCouponHistory/update',
        method: 'post',
        data
    })
}

// 根据id获取
export function get(id) {
    return request({
        url: prefix + '/smsCouponHistory/get/'+ id,
        method: 'get'
    })
}
// 移除
export function remove(id) {
    return request({
        url: prefix + '/smsCouponHistory/remove/'+ id,
        method: 'get'
    })
}





